package thread.heima.a08threadmethod5;

public class ThreadDemo {
    public static void main(String[] args) throws InterruptedException {
        MyThread t=new MyThread();
        t.setName("土豆");
        t.start();
        t.join();

        for (int i = 0; i <10 ; i++) {
            System.out.println(Thread.currentThread().getName() + i);
        }
    }
}
